@import "../../../index";

.bi-radio {
  & .radio-content {
    .border-radius(8px);
    border: 1px solid @color-bi-border-dark-line;
    &:after {
      content: "";
    }
    &.hover, &:hover {
      border-color: @color-bi-border-highlight;
    }
  }
  &:active, &.active {
    & .radio-content {
      border-color:  @color-bi-border-highlight;
      &:after {
        width: 6px;
        height: 6px;
        display: table;
        position: absolute;
        top: 50%;
        left: 50%;
        .border-radius(3px);
        background-color: @color-bi-background-default;
        .transform(translate(-50%, -50%));
      }
    }
  }
  &.disabled {
    & .radio-content {
      background-color: @color-bi-background-disabled;
      border-color: @color-bi-border-disabled;
    }
    & .radio-content:after {
      background-color: transparent;
    }
    &.active {
      & .radio-content {
        background-color: @color-bi-background-dark-gray;
        &:after {
          background-color: @color-bi-background-default;
        }
      }
    }
  }
}

.bi-theme-dark {
  .bi-radio {
    & .radio-content {
      border-color: @color-bi-border-dark-line-theme-dark;
      &.hover, &:hover {
        border-color: @color-bi-border-highlight;
      }
    }
    &.active, &:active {
      & .radio-content {
        border-color: @color-bi-border-highlight;
      }
    }
    &.disabled {
      & .radio-content {
        background-color: @color-bi-background-disabled-theme-dark;
        &.hover, &:hover {
          border-color: @color-bi-border-dark-line-theme-dark;
        }
      }
      &.active {
        & .radio-content {
          background-color: @color-bi-background-dark-gray-theme-dark;
          border-color: @color-bi-border-disabled-theme-dark;
        }
      }
    }
  }
}